package com.cyt.work.question.job;

import com.cyt.work.question.service.IQuestionService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 关闭时间范围内结束的问卷
 * 开启第二天的问卷
 *
 * @author congcong tao
 * @date 2019/9/2 14:33
 */
public class QuestionStatusJob implements Job {

   @Autowired
   private IQuestionService questionService;

    @Override
    public void execute(JobExecutionContext jobExecutionConext) {
        // 每天晚上11点50，关闭当天结束的，开启第二天开始的
        questionService.updateStatusByTime();
    }
}
